//
//  DateHelper.h
//  Rich
//
//  Created by Kenny Chen on 13/9/8.
//  Copyright (c) 2013年 Kenny Chen. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DateHelper : NSObject

typedef enum {
    RichDateToday,
    RichDateYesterday,
    RichDateFirstDayOfThisWeek,
    RichDateFirstDayOfLastWeek,
    RichDateSameDayOfLastWeek,
    RichDateFirstDayOfThisMonth,
    RichDateFirstDayOfLastMonth,
    RichDateSameDayOfLastMonth,
} RichDateType;

+ (NSDate *)dateFor:(RichDateType)dateType byDate:(NSDate *)date;
+ (NSDate *)firstDayOfMonthForDate:(NSDate *)date;
+ (NSDate *)lastDayOfMonthForDate:(NSDate *)date;
+ (NSDate *)firstDayOfWeekForDate:(NSDate *)date;
+ (NSDate *)lastDayOfWeekForDate:(NSDate *)date;
+ (NSInteger)numberOfWeeksOfMonthForDate:(NSDate *)date;

@end
